﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_addUser : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void SqlDataSourceuserClass_Inserting(object sender, SqlDataSourceCommandEventArgs e)
    {
       // u_LoginName, u_Name, u_password, u_class
        e.Command.Parameters[0].Value = tbxLoginName.Text;
        e.Command.Parameters[1].Value = tbxName.Text;
        e.Command.Parameters[2].Value = tbxPassword.Text;
        e.Command.Parameters[3].Value = ddlClass.Text;
    
    }
   
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        SqlDataSourceuserClass.Insert();
        Response.Redirect("editUser.aspx");
    }
}